import request from '@/utils/request'

export function page_person(data) {
  return request({
    url: '/course/page_person',
    method: 'post',
    data
  })
}

export function page_recommend(data) {
  return request({
    url: '/course/page_recommend',
    method: 'post',
    data
  })
}

export function query(uid) {
  return request({
    url: '/course/query',
    method: 'get',
    params: { uid }
  })
}

export function save_update(data) {
  return request({
    url: '/course/save_update',
    method: 'post',
    data
  })
}

export function choose(uid) {
  return request({
    url: '/course/choose',
    method: 'get',
    params: { uid }
  })
}

export function toggle(uid) {
  return request({
    url: '/course/toggle',
    method: 'get',
    params: { uid }
  })
}
